package com.springboot.base.common;

import java.io.Serializable;

/**
 *
 * @author beike
 * @date 2021/3/5
 */
public class Result implements Serializable {
    public int code = 0;
    public String error = null;
    public Object data = null;

    public Result() {
    }

    public Result(Object o) {
        this.data = o;
    }

    public Result(int code, String error) {
        this.code = code;
        this.error = error;
    }
}
